package com.msc.cili.service.subscribe;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.msc.cili.repository.entity.subscribe.Subscribe;
import com.msc.cili.service.subscribe.bo.SubscribeBo;

import org.springframework.transaction.annotation.Transactional;

/**
 * @author masc
 * @date 2022/6/24 23:55
 * <p>订阅内容</p>
 */
public interface SubscribeService extends IService<Subscribe> {

    IPage<Subscribe> getAllScribeList(Integer typeId, int pageIndex, int pageSize);

    /**
     * @Author masc
     * @Description: 下单
     * @Date 2022/6/28 17:06
     * @param subscribeBo
     * @return boolean
     */
    @Transactional
    boolean buySubscribe(SubscribeBo subscribeBo);
}
